package com.buydeem.observer;

/**
 * 粉丝
 *
 * @author zengchao
 * @date 2022-04-19 16:13:13
 */
public class Fans implements Observer{

    private final String name;

    public Fans(String name) {
        this.name = name;
    }

    @Override
    public void update(String msg) {
        System.out.printf("粉丝[%s]收到订阅消息:[%s]%n",name,msg);
    }
}
